<table id="example" class="display responsive nowrap" cellspacing="0" width="100%">
	<thead>
		<tr>
			<th>Data/Hora</th>
			<th>Autos/RT</th>
			<th>Autor(es)</th>
			<th>Réu(s)</th>
			<th>Tipo</th>
			<th>Adv. Responsável</th>
			<th>Status</th>
			<th>Detalhes</th>
		</tr>
	</thead>
	<tbody>
		<?php
		foreach($evento as $p){
			echo "<tr>";
				echo "<td>".$p->dt_evento."</td>";
				echo "<td>".$p->numeroprocesso."</td>";
				echo "<td>".$p->autor."</td>";
				echo "<td>".$p->reu."</td>";
				echo "<td>".$p->nome_evento."</td>";
				echo "<td>".$p->nome_completo."</td>";
				echo "<td>";
				if($p->status_evento == '1'){
					echo ' <a href="#" class="btn btn-success btn-xs">ATIVO</a>';
				}elseif($p->status_evento == '2'){
					echo ' <a href="#" class="btn btn-warning btn-xs">REMARCADO</a>';
				}elseif($p->status_evento == '3'){
					echo ' <a href="#" class="btn btn-danger btn-xs">CANCELADO</a>';
				}elseif($p->status_evento == '4'){
					echo ' <a href="#" class="btn btn-info btn-xs">CONCLUÍDO</a>';
				}
				echo "</td>";
				echo '<td><a data-toggle="modal" href="'.base_url('index.php/eventos/info/'.$p->id).'" class="btn btn-success btn-xs"><span class="glyphicon glyphicon-plus"></span>Detalhes</a></td>';
			echo "</tr>";
		}
		?>
	</tbody>
</table>
<script src="<?php echo base_url('includes/js/jquery.dataTables.min.js')?>"></script>
<script src="<?php echo base_url('includes/js/dataTables.responsive.min.js')?>"></script>
<script src="<?php echo base_url('includes/js/dataTables.bootstrap.js')?>"></script>
		<link href="<?php echo base_url('includes/css/jquery.dataTables.css') ?>" rel="stylesheet">
		<link href="<?php echo base_url('includes/css/dataTables.bootstrap.css') ?>" rel="stylesheet"> 
		<link href="<?php echo base_url('includes/css/dataTables.responsive.css') ?>" rel="stylesheet">
